import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from "typeorm";
import { LabelType } from "../dto/type.dto";

@Entity()
export class Label {
    @PrimaryGeneratedColumn()
    id: number;

    @Column('varchar')
    type:LabelType;

    @Column()
    name: string;

    @Column()
    label: string;

    @Column({nullable: true})
    description:string;

    @CreateDateColumn()
    createAt: Date;
}
